import static play.test.Helpers.fakeApplication;
import static play.test.Helpers.running;

import models.Account;
import models.Actor;

import org.junit.Test;

import play.db.jpa.JPA;
import processor.ActorProcessor;
import service.ActorService;
import service.impl.ActorServiceImpl;

public class Playtest {

    @Test
    public void taskModel() {
        running(fakeApplication(), new Runnable() {
            public void run() {
                JPA.withTransaction(new play.libs.F.Callback0() {
                    public void invoke() {
                        try {
                            ActorService service = new ActorServiceImpl();
                            ActorProcessor processor = service.getProcessor();
                            processor.createActor("gogos@sl.com", "welcome1", "13519284123", Actor.TYPE.CUSTOMER);
                        } catch (Throwable e) {
                            e.printStackTrace();
                        }
                    }
                });
            }
        }

        );
    }

}
